package com.dmbjz.profilesdemo.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
//指定环境，只有处于test环境才会生效
@Profile("test")
public class Person {

    private Long id;
    private String name;

}
